﻿namespace UtilZFileServer
{
    /// <summary>
    /// 文件项
    /// </summary>
    public class FileItem
    {
        /// <summary>
        /// 文件名或目录名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// url
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 文件长度,当为小于0时为目录
        /// </summary>
        public long Length { get; set; } = -1;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModifyTime { get; set; }

        /// <summary>
        /// 目录下文件或文件夹个数
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public FileItem()
        {

        }
    }
}
